package com.ushine.design.design.c_behavioral_pattern.c_interpreter.b_example;

/**
 * 终结符表达式：距离节点类
 *
 * @author yls
 */
public class DistanceNode extends AbstractNode {

    private String distance;

    public DistanceNode(String distance) {
        this.distance = distance;
    }

    @Override
    public String interpret() {
        return this.distance;
    }

}
